import React, { Component } from 'react'
import Item from '../Item/index'

export default class List extends Component {


	render() {
			// 1.接收父传子的props数据 并解析赋值
		  // console.log(this.props.todos);
		const {todos} = this.props
		return (
      <div>
        {/* <Item/> */}
        {
					todos.map(todo => {
						return <Item key={todo.id} {...todo}  />
					})
				}
      </div>
		)
	}
}